//
//  ViewController.swift
//  GetDeviceModelSwift
//
//  Created by Liyn on 2018/9/22.
//  Copyright © 2018 Liyn. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    @IBOutlet weak var descritionLabel: UILabel!
    
    @IBOutlet weak var modelNameLabel: UILabel!
    
    @IBOutlet weak var iosVersionLabel: UILabel!
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        
        descritionLabel.text = String.init(format: "设备描述: %@", UIDevice.getCurrentDeviceModelDescription())
        
        modelNameLabel.text = String.init(format: "设备型号: %@", UIDevice.getCurrentDeviceModel())
        
        iosVersionLabel.text = String.init(format: "iOS版本: %@", UIDevice.current.systemVersion)
        
    }

}

